package com.mh.dao;

import java.util.List;
import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;
import org.springframework.dao.DataAccessException;

import com.mh.domain.AppRole;

/**
 * DAO to manage AppRole entities.
 * 
 */
public interface AppRoleDAO extends JpaDao<AppRole> {

	/**
	 * JPQL Query - findAppRoleByDescription
	 *
	 */
	public Set<AppRole> findAppRoleByDescription(String description) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByDescription
	 *
	 */
	public Set<AppRole> findAppRoleByDescription(String description, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByPrimaryKey
	 *
	 */
	public AppRole findAppRoleByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByPrimaryKey
	 *
	 */
	public AppRole findAppRoleByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByRoleNameContaining
	 *
	 */
	public Set<AppRole> findAppRoleByRoleNameContaining(String roleName) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByRoleNameContaining
	 *
	 */
	public Set<AppRole> findAppRoleByRoleNameContaining(String roleName, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllAppRoles
	 *
	 */
	public Set<AppRole> findAllAppRoles() throws DataAccessException;

	/**
	 * JPQL Query - findAllAppRoles
	 *
	 */
	public Set<AppRole> findAllAppRoles(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByDescriptionContaining
	 *
	 */
	public Set<AppRole> findAppRoleByDescriptionContaining(String description_1) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByDescriptionContaining
	 *
	 */
	public Set<AppRole> findAppRoleByDescriptionContaining(String description_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleById
	 *
	 */
	public AppRole findAppRoleById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleById
	 *
	 */
	public AppRole findAppRoleById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByRoleName
	 *
	 */
	public Set<AppRole> findAppRoleByRoleName(String roleName_1) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByRoleName
	 *
	 */
	public Set<AppRole> findAppRoleByRoleName(String roleName_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByApplicationContaining
	 *
	 */
	public Set<AppRole> findAppRoleByApplicationContaining(String application) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByApplicationContaining
	 *
	 */
	public Set<AppRole> findAppRoleByApplicationContaining(String application, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByApplication
	 *
	 */
	public Set<AppRole> findAppRoleByApplication(String application_1) throws DataAccessException;

	/**
	 * JPQL Query - findAppRoleByApplication
	 *
	 */
	public Set<AppRole> findAppRoleByApplication(String application_1, int startResult, int maxRows) throws DataAccessException;
	
	public List<AppRole> findAllAppRoles(AppRole approle, int startResult, int maxRows);
	
	
	public Set<AppRole> findAppRoles(AppRole appRole) throws DataAccessException;
	
	

}